import java.util.Random;

public class Test05 {
    public static void main(String[] args) {
        String s = "令狐冲, 风清扬,左冷禅,岳不群,苗人凤";
        call(s);
    }

    public static void call(String s) {

        String[] crr = s.split(",");//根据","进行分割;
        Random r = new Random();
        int a = r.nextInt(crr.length);
        System.out.println("本次幸运同学是: " + crr[a]);

    }
}
